package com.lihui.heap;

import com.lihui.heap.Heap;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2022/11/05  8:46
 */
public class Demo01 {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        Heap heap = new Heap(array);
        System.out.println();
        heap.display();
        heap.offer(100);
        heap.display();
        System.out.println(heap.poll());
        System.out.println(heap.peek());
    }
}
